home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Communications Toolbox / CTB Development Resources / Simple FT Tool / Simon Tool / FLOC.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-10  |  3.1 KB  |  122 lines  |  [TEXT/MPS ]

  1. /************************************************************************************
  2.                                   P R O J E C T   I N F O
  3. *************************************************************************************
  4.   
  5.     Project Name:    Simon
  6.        File Name:    FLOC.c
  7.   
  8.      Description:    Contains C code specific to the localization code resource
  9.                      of a simple file transfer tool.
  10.   
  11.                           Copyright © 1992 Apple Computer, Inc.
  12.                           All rights reserved.
  13.   
  14. *************************************************************************************
  15.                               A U T H O R   I D E N T I T Y
  16. *************************************************************************************
  17.   
  18.       Initials    Name
  19.       --------    -----------------------------------------------
  20.       CH            Craig Hotchkiss
  21.   
  22. *************************************************************************************
  23.                               R E V I S I O N   H I S T O R Y
  24. *************************************************************************************
  25.  
  26.     Change History (most recent first):
  27.  
  28.          <0>      5/8/92    CH        Creation date
  29.  
  30. ************************************************************************************/
  31.  
  32.  
  33.  
  34. /************************************************************************************
  35.                                 STANDARD Mac HEADERS 
  36. ************************************************************************************/
  37.  
  38. #ifdef DUMPFILENAME
  39.     #pragma load DUMPFILENAME
  40. #else
  41.     #define    DoNotDump     1
  42.     #include Load.c
  43. #endif
  44.  
  45.  
  46.  
  47. /************************************************************************************
  48.      Procedure:    FLOC
  49.  
  50.      Purpose:    
  51.  
  52.      Inputs:        
  53.  
  54.      Outputs:
  55. ************************************************************************************/
  56. pascal        long        FLOC( FTHandle toolHandle, short message, 
  57.                                 long p1, long p2, long p3 )
  58. {
  59.     long            retValue = ftNotSupported;
  60.     #if Debugging == 1
  61.         #if DefaultDebug == 1
  62.             Str255            tempString;
  63.         #endif
  64.     #endif
  65.     
  66.  
  67. #pragma unused ( p1, p2, p3 )
  68.  
  69.     (**toolHandle).errCode = noErr;
  70.     
  71.     switch ( message ) {
  72.         case ftL2English:
  73.                 /*        *********************
  74.                         Parameter Definitions
  75.                         *********************
  76.                     p1:        Ptr                    inputPtr
  77.                     p2:        Ptr                    outputPtr - gets changed
  78.                     p3:        short                fromLanguage
  79.                     returns:    FTErr in the form of a long indicating any failure.
  80.                 */
  81.                 
  82.             #if Debugging == 1
  83.                 #if ShowMessage == 1
  84.                     DebugStr( "\p FLOC/ftL2English received.;g" );
  85.                 #endif
  86.             #endif
  87.             
  88.             break;
  89.             
  90.         case ftL2Intl:
  91.                 /*        *********************
  92.                         Parameter Definitions
  93.                         *********************
  94.                     p1:        Ptr                    inputPtr
  95.                     p2:        Ptr                    outputPtr - gets changed
  96.                     p3:        short                toLanguage
  97.                     returns:    FTErr in the form of a long indicating any failure.
  98.                 */
  99.                 
  100.             #if Debugging == 1
  101.                 #if ShowMessage == 1
  102.                     DebugStr( "\p FLOC/ftL2Intl received.;g" );
  103.                 #endif
  104.             #endif
  105.             
  106.             break;
  107.             
  108.         default:
  109.             #if Debugging == 1
  110.                 #if DefaultDebug == 1
  111.                     DebugStr( "\p FLOC - Did not understand message -- ;g" );
  112.                     NumToString( (long) message, tempString );
  113.                     DebugStr( tempString );
  114.                 #endif
  115.             #endif
  116.             
  117.             break;
  118.     } /* message switch */
  119.     
  120.     return ( retValue );
  121. } /*FLOC*/
  122.